//
//  Student.h
//  Eath
//
//  Created by yuhaya on 14-9-20.
//  Copyright (c) 2014年 yuhaya. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StuPointDelegate.h"
#import "StuPointDuring.h"

@interface Student : NSObject

@property (nonatomic,assign) NSInteger index;//学生排序的索引
@property (nonatomic,copy) NSString * identify;//学生的id
@property (nonatomic,copy) NSString * name;
@property (nonatomic,copy) NSString * school_name;
@property (nonatomic,copy) NSString * photo;
@property (nonatomic,copy) NSString * card;//卡号
@property (nonatomic,copy) NSString * grade;//年级信息
@property (nonatomic,copy) NSString * class_name;//班级名称
@property (nonatomic,copy) NSString * enrol_time;//入学时间
@property (nonatomic,copy) NSString * relation; //对应与该登陆家长的关系
@property (nonatomic,assign) BOOL main; //标示是否为主家长
@property (nonatomic,assign) NSInteger sex;//性别 1=》男 0=》女
@property (nonatomic,assign) NSInteger age;
//@property (nonatomic,assign) NSString * edu_msg;
@property (nonatomic,assign) NSString * school_id;

@property (nonatomic,strong) id<StuPointDelegate> delegate;
@property (nonatomic,strong) id<StuPointDuring> delegateDuring;

@property (nonatomic,assign) NSMutableArray * photos;//学生某一时间段的图片组


- (id) initWithId:(NSString *)identify andName:(NSString *)name andAge:(NSInteger)age andSex:(NSInteger)sex andRelation:(NSString *)relation andSchool:(NSString *)school andMain:(BOOL)main andGrade:(NSString *)grade andCard:(NSString *)card andIndex:(NSInteger)index andClassName:(NSString *)class_name andEnrolTime:(NSString *)enrol_time andSchoolId:(NSString *)school_id;

- (void) setId:(NSString *)identify andName:(NSString *) name andAge:(NSInteger)age andSex:(NSInteger)sex andRelation:(NSString *)relation andPhoto:(NSString *)photo andSchool:(NSString *)school andMain:(BOOL)main andGrade:(NSString *)grade andCard:(NSString *)card andIndex:(NSInteger)index andClassName:(NSString *)class_name andEnrolTime:(NSString *)enrol_time andSchoolId:(NSString *)school_id;

- (void)all_mes:(NSUInteger) timestamp;
- (void)week_point_stime:(NSString *)s_time and_etime:(NSString *)e_time;
@end
